<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib uri="/struts-tags" prefix="s" %>
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt"  prefix="fmt" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<script type="text/javascript" src="scripts/jquery-1.5.1.min.js"></script>
<script type="text/javascript" src="scripts/jquery-ui-1.8.13.custom.min.js"></script>
<title>Insert title here</title>
<script type="text/javascript">
		
			
			jQuery(document).ready(function() {
				
				$("#submitBtn").click(function(e){
					alert("Registered successfully");
					$("#firstname").val('');
					$("#lastname").val('');
					$("#password").val('');
					$("#profile").val('');
			   });
				
			});
		</script>
</head>
<body>

Welcome to Registration page.

<s:form action="submitregistration" id="actform" method="POST">
        
        <tr>
        <td>
        <s:textfield name="firstname" id="firstname"  label="FirstName" key="firstname"/>
        <s:fielderror />
        </td>
        </tr>
        <tr>
        <td>
        <s:textfield name="lastname" id="lastname" label="LastName" key="lastname"/>
        <s:fielderror />
        </td>
        </tr>
        <tr>
        <td>
        <s:textfield name="password" id="password" label="Password" key="password" />
        <s:fielderror />
       </td>
        </tr>
         <tr>
        <td>
        
        <s:textfield name="profile" label="profile" key="profile" />
        <s:fielderror />
       </td>
        </tr>
         <tr>
        <td>
        
        <s:submit value="Submit" id="submitBtn" align="center"/>
        
        
        </td>
        </tr>
	</s:form>


</body>
</html>